package com.whsxt.code;

import java.util.Scanner;

/**
 * @author CodeYang
 * @Description switch 检查季节  素数
 * @Date 2020/12/5 20:24
 */
public class CheckSeason {

    public static void main(String[] args) {
        // 输入月份
        Scanner input = new Scanner(System.in);
        System.out.println("请输入月份：");
        int month = input.nextInt();
        //根据月份输出季节
        switch (month) {
            case 1:
            case 2:
            case 3:
                System.out.println("春天-春暖花开 春意盎然-植树 踏青");
                break;
            case 4:
            case 5:
            case 6:
                System.out.println("夏天-夏日炎炎  夏雨雨人-游泳  吃雪糕");
                break;
            case 7:
            case 8:
            case 9:
                System.out.println("秋天-秋高气爽 秋风落叶- 秋收  送秋波 ");
                break;
            case 10:
            case 11:
            case 12:
                System.out.println("冬天-寒冬腊月 白雪皑皑 -滑雪  溜冰");
                break;
            default:
                System.out.println("您的输入有误");
        }
    }
}
